<template>

    <div class="boardBox">

     <!-- <iframe :src="url" frameborder="0"></iframe> -->


       <iframe 
            v-if="url"
            :src="`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(url)}`" 
            frameborder="0"
            width="100%"
            height="100%"
        ></iframe>
    </div>

</template>
<script setup lang="ts">
  import { ref, reactive, watch, onMounted } from "@/TUIKit/adapter-vue";
import {  useRoute } from 'vue-router';
const route =useRoute();

const url=route.query.url
  onMounted(e => {

    console.log( route.query,'sgsg');

  });



</script>
<style>
.el-dialog__wrapper1 {
  background-color: rgba(0, 0, 0, 0) !important;
  box-shadow: none !important;
  /* 完全透明 */
}
</style>
<style lang="scss" scoped>
.boardBox {
  display: flex;
  // align-items: center;
  // flex-direction: column;
  // flex-wrap: wrap;
  // justify-content: space-around;
  overflow: hidden;
  height: 100%;

  &::-webkit-scrollbar {
    display: none;
  }

  -ms-overflow-style: none;
  scrollbar-width: none;

  .tishi {
    font-size: 14px;
    color: #999;
    background-color: #f3f8fb;
    padding: 5px 10px;
    border-radius: 6px;
  }

  .left_box {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    overflow-y: scroll;
  }

  .right_box {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 20%;
    overflow-y: scroll;
    margin-left: 20px;
  }

  .zi1 {
    font-size: 18px;
    // font-family: 黑体;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: solid 1px #eaeaea;
  }

  .bt_title1 {
    font-size: 16px;
    background: url(@/assets/image/cf/img05.png) no-repeat center left;
    background-size: 17px;
    padding-left: 20px;
    margin-bottom: 10px;
  }

  .bt_title2 {
    font-size: 16px;
    background: url(@/assets/image/cf/img06.png) no-repeat center left;
    background-size: 17px;
    padding-left: 20px;
    margin-bottom: 10px;
  }

  .bt_title3 {
    font-size: 16px;
    background: url(@/assets/image/cf/img07.png) no-repeat center left;
    background-size: 17px;
    padding-left: 20px;
    margin-bottom: 10px;
  }

  .bt_title4 {
    font-size: 16px;
    background: url(@/assets/image/cf/img08.png) no-repeat center left;
    background-size: 18px;
    padding-left: 20px;
    margin-bottom: 10px;
  }

  .ht_img img {
    width: 100%;
    height: 200px;
  }

  .flex-container {
    display: flex;
    /* 启用Flexbox */
    flex-wrap: wrap;
    /* 允许子项换行 */
    justify-content: flex-start;
    /* 子项在主轴上的对齐方式 */
    align-items: stretch;

    /* 子项在交叉轴上的对齐方式 */
  }

  .flex-item {
    /* 根据需要设置宽度或其他样式 */
    margin: 5px;
    padding: 5px;
    border: solid 1px #eaeaea;
    border-radius: 5px;
    /* 可选：添加一些间距 */
  }

  .ht_title {
    font-size: 12px;
  }


  .constent_box {
    overflow-y: scroll;
    max-height: calc(60vh);
  }
}
</style>
